<!DOCTYPE html>
<html >
  <head>
    <meta charset="utf-8">
    <title></title>
    <script src="jquery.js"></script>
    <script type="text/javascript">
        $.ajax({
          url: 'data/1.txt',
          dataType: 'json',
          success(data1){
            //data2
            $.ajax({
              url: 'data/2.txt',
              dataType: 'json',
              success(data2){
                console.log(data1,data2);
              },
              error(){
                alert('error');
              }
            });
          },
          error(){
            alert('error');
          }
        });
    </script>
  </head>
  <body >

  </body>
</html>
